package com.solcoo.merchant.ui.setting;

import android.os.Bundle;
import android.widget.EditText;

import com.solcoo.merchant.R;
import com.solcoo.merchant.util.CheckUtil;
import com.solcoo.merchant.util.CheckUtil.CheckResult;

public class EditInputActivity extends EditBaseActivity {
	EditText editValue;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.edit_input);
		editValue = (EditText) findViewById(R.id.edit_value);
		editValue.setText(String.valueOf(oldValue));
	}

	@Override
	protected String getValue() {
		return editValue.getText().toString();
	}

	@Override
	protected CheckResult checkValue() {
		final String v = getValue();
		return CheckUtil.checkLength(v, 1, 14);
	}

}
